/**
 * 
 */
package org.mspring.crm.entity.permission;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * @author Gao Youbo
 * @since Mar 1, 2012
 */
@Embeddable
public class UserGroupPK implements Serializable {
    private Integer userId;
    private Integer groupId;

    /**
     * 
     */
    public UserGroupPK() {
        super();
    }

    /**
     * @param userId
     * @param groupId
     */
    public UserGroupPK(Integer userId, Integer groupId) {
        super();
        this.userId = userId;
        this.groupId = groupId;
    }

    @Column(name = "user_id", nullable = false)
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Column(name = "group_id", nullable = false)
    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

}
